package com.lsj.common.constant;

/**
 * @author 梁胜君
 * @version 1.0
 * @create 2022/3/4 0:59
 */

/**
 * 商品模块常量
 */
public class ProductConstant {

    /**
     * 属性枚举
     */
    public enum AttrEnum {
        /**
         * 基本属性
         */
        ATTR_TYPE_BASE(1,"base"),
        /**
         * 销售属性
         */
        ATTR_TYPE_SALE(0,"sale");
        private Integer code;
        private String msg;
        AttrEnum(Integer code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * 分类枚举
     */
    public enum CategoryEnum{
        CATEGORY_PARENT(0,"父级分类"),
        CATEGORY_ONE(1,"一级分类"),
        CATEGORY_TWO(2,"二级分类"),
        CATEGORY_THREE(3,"三级分类");
        private Integer code;
        private String msg;
        CategoryEnum(Integer code,String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    /**
     * SPU类枚举
     */

    public enum ProductStatusEnum {
        SPU_UP(1,"SPU_UP");
        private Integer code;
        private String msg;

        ProductStatusEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }
        public String getMsg() {
            return msg;
        }

    }
}
